import React from "react";
import LayoutComponent from "../../layout";
import { RouteItem } from "../interface/route-item.interface";
import lazyLoad from "../utils/lazy-load";

// system 模块
const systemRouter: Array<RouteItem> = [
	{
		path: 'system',
		element: <LayoutComponent />,
		meta: {
			title: "system"
		},
		children: [
			{
				path: "/system/user/list",
				element: lazyLoad(React.lazy(() => import("../../views/system/user/list/index"))),
				meta: {
					requiresAuth: true,
					title: "用户列表",
					key: "dataVisualize"
				}
			}
		]
	}
];

export default systemRouter;
